import http from './http'
let root=''
if (process.env.NODE_ENV === 'production') {
	root = '../'
	console.log("root", root)
}else{
	root = '/public'
	console.log("root", root)
}

export default {
	async NewsAppletsUpdatenews(params){
		return await http.fetchPost(root + "?s=App.NewsApplets.Updatenews", params)
	},
	async LearningAlready(params){
		return await http.fetchPost(root + "?s=App.Learning.Already", params)
	},
	async ArticleItem(params){
		return await http.fetchPost(root + "?s=App.Article.Item", params)
	},
	// 获取签到列表接口
	async IntegralSignIntegral(params){
		return await http.fetchPost(root + "?s=App.Integral.SignIntegral", params)
	},
	// 签到加积分接口
	async MembersignH5Saves(params){
		return await http.fetchPost(root + "?s=App.MembersignH5.Saves", params)
	},
	async NewDetails(params){
		return await http.fetchPost(root + "?s=App.NewsApplets.NewDetails", params)
	},
	async ContributionPage(params){
		return await http.fetchPost(root + "?s=App.Contribution.Page", params)
	},
	async IntegralPage(params){
		return await http.fetchPost(root + "?s=App.Integral.Page", params)
	},
	async GetByIdTotalPoints(params){
		return await http.fetchPost(root + "?s=App.MemberH5.GetByIdTotalPoints", params)
	},
	async LearningMyCourse(params){
		return await http.fetchPost(root + "?s=App.Learning.MyCourse", params)
	},
	async LearningSave(params){
		return await http.fetchPost(root + "?s=App.Learning.Save", params)
	},
	async LearningPage(params){
		return await http.fetchPost(root + "?s=App.Learning.Page", params)
	},
	async CollectH5Items(params){
		return await http.fetchPost(root + "?s=App.CollectH5.Items", params)
	},
	async CollectH5Pages(params){
		return await http.fetchPost(root + "?s=App.CollectH5.Pages", params)
	},
	async CollectH5Saves(params){
		return await http.fetchPost(root + "?s=App.CollectH5.Saves", params)
	},
	// 新增个人信息
	async MemberH5Item(params){
		return await http.fetchPost(root + "?s=App.MemberH5.Item", params)
	},
	// 查询个人信息
	async MemberH5Items(params){
		return await http.fetchPost(root + "?s=App.MemberH5.Items", params)
	},
	// 获取消息
	async NewsAppletsPage(params){
		return await http.fetchPost(root + "?s=App.NewsApplets.Page", params)
	},
	// 查询此人是否已经报名
	async getApplyInfoByItem(params){
		return await http.fetchPost(root + "?s=App.CourseH5.Items", params)
	},
	async ApplyRecordSave(params){
		return await http.fetchPost(root + "?s=App.Record.Save", params)
	},
	async ClasscourseItems(params){
		return await http.fetchPost(root + "?s=App.Classcourse.Items", params)
	},
	// 获取课程目录
	async CoursesItem(params){
		return await http.fetchPost(root + "?s=App.CourseH5.Item", params)
	},
	async CoursesDetail(params){
		return await http.fetchPost(root + "?s=App.CourseH5.Details", params)
	},
	async CoursesortH5Pages(params){
		return await http.fetchPost(root + "?s=App.CoursesortH5.Pages", params)
	},
	async CourseH5Hot(params){
		return await http.fetchPost(root + "?s=App.CourseH5.Hot", params)
	},
	async CourseH5News(params){
		return await http.fetchPost(root + "?s=App.CourseH5.News", params)
	},
	async ArticleH5Artpage(params){
		return await http.fetchPost(root + "?s=App.ArticleH5.Artpage", params)
	},
	async ArticleH5Items(params){
		return await http.fetchPost(root + "?s=App.ArticleH5.Items", params)
	},
	async CourseH5Pagelist(params){
		return await http.fetchPost(root + "?s=App.CourseH5.Pagelist", params)
	},
	async CourseH5Recommend(params){
		return await http.fetchPost(root + "?s=App.CourseH5.Recommend", params)
	},
	async CarouselH5Pages(params){
		return await http.fetchPost(root + "?s=App.CarouselH5.Pages", params)
	},
	async CampusH5Items(params){
		return await http.fetchPost(root + "?s=App.CampusH5.Items", params)
	},
	async configItemShare(params){
		return await http.fetchPost(root + "?s=App.Config.ItemShare", params)
	},
	async configJssdk(params){
		return await http.fetchPost(root + "?s=App.Config.Jssdk", params)
	},
	async BalancePage(params){
		return await http.fetchPost(root + "?s=App.Balance.Page", params)
	},
	async withdrawalPage(params){
		return await http.fetchPost(root + "?s=App.Withdrawal.Page", params)
	},
	async withdrawalSave(params){
		return await http.fetchPost(root + "?s=App.Withdrawal.Save", params)
	},
	async verificationItem(params){
		return await http.fetchPost(root + "?s=App.Verification.Item", params)
	},
	async getOrderPage(params){
		return await http.fetchPost(root + "?s=App.Order.Page", params)
	},
	async getMealPage(params){
		return await http.fetchPost(root + "?s=App.Meal.Page", params)
	},
	async getBillSave(params){
		return await http.fetchPost(root + "?s=App.Bill.Save", params)
	},
	async getMerchantItems(params){
		return await http.fetchPost(root + "?s=App.Merchant.Items", params)
	},
	async getVerificationPage(params){
		return await http.fetchPost(root + "?s=App.Verification.Page", params)
	},
	async getVerificationSave(params){
		return await http.fetchPost(root + "?s=App.Verification.Save", params)
	},
	async getActivityFans(params){
		return await http.fetchPost(root + "?s=App.Activity.Count", params)
	},
	async getFansItem(params){
		return await http.fetchPost(root + "?s=App.Fans.Item", params)
	},
	async getUserInfo(params){
		return await http.fetchPost(root + "?s=App.Weixin.YongHu", params)
	},
	async getOpenid(params){
		return await http.fetchPost(root + "?s=App.Weixin.Weixin", params)
	},
	async getWeixinConfig(params){
		return await http.fetchPost(root + "?s=App.Config.ItemWeixin", params)
	},
	async getSlidepicPage(params){
		return await http.fetchPost(root + "?s=App.Slidepic.Page", params)
	},
    async getTabbar(params){
		return await http.fetchGet(root + "?s=App.Config.Items", params)
	},
	////
	async getStudent(params){
		return await http.fetchPost(root + "?s=App.MemberH5.Items", params)
	},
	async getTeacher(params){
		return await http.fetchPost(root + "?s=App.Teacher.Item", params)
	},
	// 教师
	async setTeacher(params){
		return await http.fetchPost(root + "?s=App.Teacher.Save", params)
	},
	async setMember(params){
		return await http.fetchPost(root + "?s=App.Member.Save", params)
	},
	// 留言表列表 分页
	async sGuestbook(params){
		return await http.fetchPost2(root + "?s=App.Guestbook.Page", params)
	},
	// 保存 分页
	async getGuestbook(params){
		return await http.fetchPost2(root + "?s=App.Guestbook.Save", params)
	},
	// 判断是否点赞
	async isSure(params){
		return await http.fetchPost2(root + "?s=App.Guestbook.Item", params)
	},
	////
	uploadPic(params){
		return http.fetchPostForUpload(root + "?s=App.Examples_Upload.Go", params)
	}
}